const nav = {
  state: {
    collapsed: false,
    topNavState: 'home',
    leftNavState: localStorage.getItem('leftNavState') ? JSON.parse(localStorage.getItem('leftNavState')) : 'home'
  },
  mutations: {
    SET_COLLAPSED: (state, collapsed) => {
      state.collapsed = collapsed
    },
    SET_TOP_SATATE: (state, topNavState) => {
      state.topNavState = topNavState
    },
    SET_LEFT_SATATE: (state, leftNavState) => {
      state.leftNavState = leftNavState
    }
  }
}

export default nav
